using YatFram;
using NUnit.Framework;

namespace Examples.StringTemplate
{
    public static class Assertions
    {
        public static YatFram<StringTemplateContext> SeeTheSameTemplate(this YatFram<StringTemplateContext> test)
        {
            return test.Check(context => Assert.That(context.RenderedText, Is.EqualTo(context.TemplateData.Expected)));
        }


        public static YatFram<StringTemplateContext> SeeTheTextWithTheHolesFilledCorrectly(this YatFram<StringTemplateContext> test)
        {
            return test.Check(context => Assert.That(context.RenderedText, Is.EqualTo(context.TemplateData.Expected)));
        }
    }
}